//
//  文件.c
//  柔性数组
//
//  Created by 马鹏朔 on 2022/11/3.
//

#include "文件.h"
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<errno.h>
int main()
{
    FILE*pf=fopen("\/Applications\/aaa\/aaa\/mps\/mps\/XJZDCC\/XJZDCC\/XJZDCC\/柔性数组\/柔性数组\/file.txt","r");
    if(pf==NULL)
    {
        printf("%s\n",strerror(errno));
        return 1;
    }
    fseek(pf,3,SEEK_SET);
    fseek(pf,3,SEEK_CUR);
    fseek(pf,3,SEEK_SET);
    printf("%d\n", ftell(pf));
    rewind(pf);
    int ch=fgetc(pf);
    
    printf("%c\n",ch);
    fclose(pf);
    pf=NULL;
    return 0;
}
